FROM docker:cli


RUN apk add --no-cache  socat
#RUN apk add --no-cache python3 py3-pip
#RUN  pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple docker flask requests gunicorn gevent
#COPY app.py  app.py

#CMD ["gunicorn", "app:app", "-b", "0.0.0.0:8080", "-w", "4", "-k", "gevent", "--log-level", "debug"]
CMD ["sh","-c","socat TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock"]
